package com.gzmu.storage.serviceImpl;

import com.gzmu.storage.entity.Record;
import com.gzmu.storage.mapper.RecordMapper;
import com.gzmu.storage.service.RecordService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobo Yan
 * @since 2020-04-16
 */
@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record> implements RecordService {
    @Autowired
    private RecordMapper recordMapper;
    @Override
    public boolean insertAndUpdate(Record record) {
        return recordMapper.insertAndUpdate( record );
    }
}
